﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class GridUIFastGridWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Grid.UIFastGrid);
			Utils.BeginObjectRegister(type, L, translator, 0, 31, 23, 23);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDataCount", _m_GetDataCount);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLuaDataByIndex", _m_GetLuaDataByIndex);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLuaDataByDataID", _m_GetLuaDataByDataID);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reposition", _m_Reposition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckDataIsShow", _m_CheckDataIsShow);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateOriginalPrefab", _m_CreateOriginalPrefab);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddItem2OriginalPrefab", _m_AddItem2OriginalPrefab);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterLuaFunction", _m_RegisterLuaFunction);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshItem", _m_RefreshItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAllItem", _m_RefreshAllItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNormalizedPosition", _m_SetNormalizedPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHorizontalNormalizedPosition", _m_SetHorizontalNormalizedPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticalNormalizedPosition", _m_SetVerticalNormalizedPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDataByIndex", _m_GetDataByIndex);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddData1", _m_AddData1);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddData", _m_AddData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveData", _m_RemoveData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearData", _m_ClearData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearGridItem", _m_ClearGridItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConstraintSort", _m_ConstraintSort);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataWeightByIndex", _m_SetDataWeightByIndex);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataWeight1ByIndex", _m_SetDataWeight1ByIndex);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataWeightByID", _m_SetDataWeightByID);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataWeight1ByID", _m_SetDataWeight1ByID);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataSizeValueByIndex", _m_SetDataSizeValueByIndex);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDataSizeValueByID", _m_SetDataSizeValueByID);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "RepositionNow", _g_get_RepositionNow);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellSize", _g_get_CellSize);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spacing", _g_get_Spacing);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Offset", _g_get_Offset);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintType", _g_get_ConstraintType);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintCount", _g_get_ConstraintCount);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "FocusID", _g_get_FocusID);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "AlwaysRefresh", _g_get_AlwaysRefresh);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "PrefabPath", _g_get_PrefabPath);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ViewPortValue", _g_get_ViewPortValue);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Changeable", _g_get_Changeable);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "MinCellSize", _g_get_MinCellSize);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "GridItems", _g_get_GridItems);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mScrollRect", _g_get_mScrollRect);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "RefreshAll", _g_get_RefreshAll);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Small2Large", _g_get_Small2Large);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OriginalPrefab", _g_get_OriginalPrefab);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaRepositionEnd", _g_get_LuaRepositionEnd);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaOnValueChanged", _g_get_LuaOnValueChanged);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaShowData", _g_get_LuaShowData);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaHideData", _g_get_LuaHideData);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshTopOffSetY", _g_get_refreshTopOffSetY);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshBottomOffSetY", _g_get_refreshBottomOffSetY);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "RepositionNow", _s_set_RepositionNow);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellSize", _s_set_CellSize);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spacing", _s_set_Spacing);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Offset", _s_set_Offset);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintType", _s_set_ConstraintType);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintCount", _s_set_ConstraintCount);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "FocusID", _s_set_FocusID);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "AlwaysRefresh", _s_set_AlwaysRefresh);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "PrefabPath", _s_set_PrefabPath);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "ViewPortValue", _s_set_ViewPortValue);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Changeable", _s_set_Changeable);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "MinCellSize", _s_set_MinCellSize);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "GridItems", _s_set_GridItems);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mScrollRect", _s_set_mScrollRect);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "RefreshAll", _s_set_RefreshAll);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Small2Large", _s_set_Small2Large);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OriginalPrefab", _s_set_OriginalPrefab);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LuaRepositionEnd", _s_set_LuaRepositionEnd);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LuaOnValueChanged", _s_set_LuaOnValueChanged);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LuaShowData", _s_set_LuaShowData);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LuaHideData", _s_set_LuaHideData);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "refreshTopOffSetY", _s_set_refreshTopOffSetY);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "refreshBottomOffSetY", _s_set_refreshBottomOffSetY);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					Grid.UIFastGrid __cl_gen_ret = new Grid.UIFastGrid();
					translator.Push(L, __cl_gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception __gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Grid.UIFastGrid constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetDataCount(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        int __cl_gen_ret = __cl_gen_to_be_invoked.GetDataCount(  );
                        LuaAPI.xlua_pushinteger(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetLuaDataByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    
                        XLua.LuaTable __cl_gen_ret = __cl_gen_to_be_invoked.GetLuaDataByIndex( index );
                        translator.Push(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetLuaDataByDataID(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int id = LuaAPI.xlua_tointeger(L, 2);
                    
                        XLua.LuaTable __cl_gen_ret = __cl_gen_to_be_invoked.GetLuaDataByDataID( id );
                        translator.Push(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Reposition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.Reposition(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckDataIsShow(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    XLua.LuaTable data = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));
                    
                        bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckDataIsShow( data );
                        LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CreateOriginalPrefab(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string path = LuaAPI.lua_tostring(L, 2);
                    
                    __cl_gen_to_be_invoked.CreateOriginalPrefab( path );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddItem2OriginalPrefab(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string resPath = LuaAPI.lua_tostring(L, 2);
                    string parentPath = LuaAPI.lua_tostring(L, 3);
                    UnityEngine.Vector3 pos;translator.Get(L, 4, out pos);
                    float scale = (float)LuaAPI.lua_tonumber(L, 5);
                    string itemName = LuaAPI.lua_tostring(L, 6);
                    
                    __cl_gen_to_be_invoked.AddItem2OriginalPrefab( resPath, parentPath, pos, scale, itemName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RegisterLuaFunction(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
			    int __gen_param_count = LuaAPI.lua_gettop(L);
            
                if(__gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TFUNCTION)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TFUNCTION)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TFUNCTION)) 
                {
                    XLua.LuaFunction init = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
                    XLua.LuaFunction refresh = (XLua.LuaFunction)translator.GetObject(L, 3, typeof(XLua.LuaFunction));
                    XLua.LuaFunction repositionEnd = (XLua.LuaFunction)translator.GetObject(L, 4, typeof(XLua.LuaFunction));
                    
                    __cl_gen_to_be_invoked.RegisterLuaFunction( init, refresh, repositionEnd );
                    
                    
                    
                    return 0;
                }
                if(__gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TFUNCTION)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TFUNCTION)) 
                {
                    XLua.LuaFunction init = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
                    XLua.LuaFunction refresh = (XLua.LuaFunction)translator.GetObject(L, 3, typeof(XLua.LuaFunction));
                    
                    __cl_gen_to_be_invoked.RegisterLuaFunction( init, refresh );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Grid.UIFastGrid.RegisterLuaFunction!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    
                    __cl_gen_to_be_invoked.RefreshItem( id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshAllItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.RefreshAllItem(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetNormalizedPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float x = (float)LuaAPI.lua_tonumber(L, 2);
                    float y = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    __cl_gen_to_be_invoked.SetNormalizedPosition( x, y );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetHorizontalNormalizedPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float value = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    __cl_gen_to_be_invoked.SetHorizontalNormalizedPosition( value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetVerticalNormalizedPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float value = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    __cl_gen_to_be_invoked.SetVerticalNormalizedPosition( value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    
                        Grid.FastGridItemData __cl_gen_ret = __cl_gen_to_be_invoked.GetData( id );
                        translator.Push(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetDataByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    
                        Grid.FastGridItemData __cl_gen_ret = __cl_gen_to_be_invoked.GetDataByIndex( index );
                        translator.Push(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddData1(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    XLua.LuaTable table = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    int weight0 = LuaAPI.xlua_tointeger(L, 4);
                    int weight1 = LuaAPI.xlua_tointeger(L, 5);
                    float height = (float)LuaAPI.lua_tonumber(L, 6);
                    
                    __cl_gen_to_be_invoked.AddData1( id, table, weight0, weight1, height );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    XLua.LuaTable table = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    
                    __cl_gen_to_be_invoked.AddData( id, table );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    
                        bool __cl_gen_ret = __cl_gen_to_be_invoked.RemoveData( id );
                        LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.ClearData(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearGridItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.ClearGridItem(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ConstraintSort(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.ConstraintSort(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataWeightByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    int weight0 = LuaAPI.xlua_tointeger(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataWeightByIndex( index, weight0 );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataWeight1ByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    int weight1 = LuaAPI.xlua_tointeger(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataWeight1ByIndex( index, weight1 );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataWeightByID(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    int weight0 = LuaAPI.xlua_tointeger(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataWeightByID( id, weight0 );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataWeight1ByID(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    int weight1 = LuaAPI.xlua_tointeger(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataWeight1ByID( id, weight1 );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataSizeValueByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    float value = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataSizeValueByIndex( index, value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDataSizeValueByID(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    long id = LuaAPI.lua_toint64(L, 2);
                    float value = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    __cl_gen_to_be_invoked.SetDataSizeValueByID( id, value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetLayoutHorizontal(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.SetLayoutHorizontal(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetLayoutVertical(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.SetLayoutVertical(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CalculateLayoutInputHorizontal(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.CalculateLayoutInputHorizontal(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CalculateLayoutInputVertical(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    __cl_gen_to_be_invoked.CalculateLayoutInputVertical(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RepositionNow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.RepositionNow);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CellSize(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, __cl_gen_to_be_invoked.CellSize);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Spacing(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, __cl_gen_to_be_invoked.Spacing);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Offset(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, __cl_gen_to_be_invoked.Offset);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ConstraintType(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.ConstraintType);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ConstraintCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.ConstraintCount);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_FocusID(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushint64(L, __cl_gen_to_be_invoked.FocusID);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_AlwaysRefresh(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.AlwaysRefresh);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_PrefabPath(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.PrefabPath);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ViewPortValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.ViewPortValue);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Changeable(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.Changeable);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MinCellSize(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.MinCellSize);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_GridItems(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.GridItems);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mScrollRect(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.mScrollRect);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RefreshAll(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.RefreshAll);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Small2Large(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.Small2Large);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OriginalPrefab(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.OriginalPrefab);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LuaRepositionEnd(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaRepositionEnd);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LuaOnValueChanged(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaOnValueChanged);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LuaShowData(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaShowData);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LuaHideData(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaHideData);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_refreshTopOffSetY(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.refreshTopOffSetY);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_refreshBottomOffSetY(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.refreshBottomOffSetY);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_RepositionNow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.RepositionNow = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_CellSize(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector2 __cl_gen_value;translator.Get(L, 2, out __cl_gen_value);
				__cl_gen_to_be_invoked.CellSize = __cl_gen_value;
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Spacing(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector2 __cl_gen_value;translator.Get(L, 2, out __cl_gen_value);
				__cl_gen_to_be_invoked.Spacing = __cl_gen_value;
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Offset(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector2 __cl_gen_value;translator.Get(L, 2, out __cl_gen_value);
				__cl_gen_to_be_invoked.Offset = __cl_gen_value;
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ConstraintType(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                Grid.UIFastGrid.Constraint __cl_gen_value;translator.Get(L, 2, out __cl_gen_value);
				__cl_gen_to_be_invoked.ConstraintType = __cl_gen_value;
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ConstraintCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.ConstraintCount = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_FocusID(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.FocusID = LuaAPI.lua_toint64(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_AlwaysRefresh(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.AlwaysRefresh = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_PrefabPath(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.PrefabPath = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ViewPortValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.ViewPortValue = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Changeable(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Changeable = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_MinCellSize(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.MinCellSize = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_GridItems(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.GridItems = (Grid.FastGridItem[])translator.GetObject(L, 2, typeof(Grid.FastGridItem[]));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mScrollRect(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mScrollRect = (UnityEngine.UI.ScrollRect)translator.GetObject(L, 2, typeof(UnityEngine.UI.ScrollRect));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_RefreshAll(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.RefreshAll = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Small2Large(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Small2Large = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OriginalPrefab(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.OriginalPrefab = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LuaRepositionEnd(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LuaRepositionEnd = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LuaOnValueChanged(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LuaOnValueChanged = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LuaShowData(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LuaShowData = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LuaHideData(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LuaHideData = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_refreshTopOffSetY(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.refreshTopOffSetY = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_refreshBottomOffSetY(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Grid.UIFastGrid __cl_gen_to_be_invoked = (Grid.UIFastGrid)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.refreshBottomOffSetY = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
